package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import javax.servlet.http.Part;
import java.util.List;
import java.util.Map;

public interface IEmployeeService {
    void save(Employee employee, Long[] ids);

    void delete(Long id);

    void update(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    PageInfo<Employee> query(QueryObject qo);

    Employee login(String username, String password);

    void deleteALL(Long[] ids);

    Employee selectByName(String name);
    Employee selectPassword(Long id);

    Workbook exportXls();
    
    void importXls(Part file) throws Exception;

    Map<String,Boolean> checkByName(String name, Long id);

    void updatePwd(Long id, String newPassword);


    void updateStatus(Long id, boolean status);

    List<Employee> selectSellers(String[] roleName);

    List<Employee> selectName();
}